package com.neusoft.databus.policy.dto;

import java.util.Date;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 事件属性信息
 * 
 * @author naxiang
 */
@Getter
@Setter
@ToString
public class EventAttributeDTO extends AbstractDTO {

    /**
     * 
     */
    private static final long serialVersionUID = -5109401539984369917L;
    /**
     * 触发次数
     */
    @Min(value = 1, message = "触发次数不能小于{value}")
    private Long count;//
    /**
     * 事件最近发生时间
     */
    private Date lastTime;
    /**
     * 事件内容
     */
    @NotBlank(message = "事件内容不能为空")
    @Length(max = 1023, message = "事件内容不能超过{max}位")
    private String content;
}
